-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tcgc] spread behavior change #1388
Conversation
All changed packages have been documented.
Show changes
|
You can try these changes here
|
@ArcturusZhang @joheredi please review and check if it could satisfy your language's requirement, thanks. |
Do we have a dev version so that we could see if this change could meet our requirement? |
before this pr merge, you could use the ci build artifact. after merge, you could use the dev version. |
@ArcturusZhang have you tried this in .net emitter? if all behavior is good, could you approve this pr? |
use original model for body parameter in
SdkServiceOperation
if it is from a simple spread.simple spread means spread model without any
@header
,@query
or@path
property and the spread model is the only source of http body.examples,
op test(...Model): void;
op test(@header h: string, @query q: string, ...Model): void;
these two operation will have
Model
as body parameter.this operation will have an anonymous model with only
prop
property and generated nameTestRequest
as body parameter.resolve: #1132
cc: @ArcturusZhang @joheredi
MIGRATION GUIDE
In previous version, we could easily judge if a body type is spread by:
Now, since the spread model could also be used by other operations, you need to change to the following judgement: